package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.PageInfo;
import com.tanhua.dubbo.server.pojo.Users;

import java.util.List;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/2/23 20:18
 * @version: 0.0.1
 * @modified By:
 */
public interface UsersApi {
     /**
      * @description 保存好友
      * @author
      * @date
      * @param
      *@return
      */
     String saveUsers(Users users);

     /**
      * @description 根据用户id查询Users列表(分页查询)
      * @author
      * @date
      * @param
      *@return
      */
     PageInfo<Users>queryUsersList(Long userId,Integer page,Integer pageSize);

     /**
      * @description 根据用户id查询Users列表
      * @author
      * @date
      * @param
      *@return
      */
     List<Users> queryAllUsersList(Long userId);
}
